package com.itpuyang.design23.factory.builder;

//工人创建者
public class Woker extends Builder {
    private Product product;

    public Woker() {
        product = new Product();
    }

    @Override
    void bulidA() {
        product.setBulideA("地基");
        System.out.println("地基");
    }

    @Override
    void bulidB() {
        product.setBulideB("钢筋工程");
        System.out.println("钢筋工程");
    }

    @Override
    void bulidC() {
        product.setBulideC("电线");
        System.out.println("电线");
    }

    @Override
    void bulidD() {
        product.setBulideD("粉刷墙");
        System.out.println("粉刷墙");
    }

    @Override
    Product getProduct() {
        return product;
    }
}
